package com.jianyu.java.util;

public class PrintArrays {
    public static void printArrays(int[] nums, int k) {
        System.out.print("[");
        for (int i = 0; i < k; i++) {
            System.out.print(nums[i]);
            if(i+1 != k){
                System.out.print(",");
            }
        }
        System.out.println("]");
    }
}
